<?php

namespace Syrius\Query;

/**
 * Enter description here ...
 * @package	Query
 * @author	Domenico Biancardi <domenico.biancardi@gmail.com>
 * @link	http://code.google.com/p/syrius/
 *
 */ class FunctionM extends Table {
        protected $_functionName;
        protected $_bodyStatement;
		public function __construct($functionName, $bodyStatement) {
			$this->_functionName = $functionName;
			$this->_bodyStatement = $bodyStatement;
		}


		public function __toString() {
			return "";
		}

	}

	/**
	 * Enter description here ...
	 * @package	Query
	 * @author	Domenico Biancardi <domenico.biancardi@gmail.com>
	 * @link	http://code.google.com/p/syrius/
	 *
	 */
	class FunctionM_Create extends FunctionM {
		public function __toString() {
            
			return "DROP FUNCTION IF EXISTS " . $this->_functionName . \Syrius\Config\Config::getDelimiter() . $this->_bodyStatement . "";
         }

	}

?>